var GraceJS = require("../../Grace.JS/grace.js");
import {apiServer} from '../../common.js';
Page({
    data: {
        user: {},
    },
    onLoad: function () {

        // 获取简历
        this.getInfo();
    },
    allProject: function(){
        GraceJS.navigate('/pages/work/index')
    },
    /**
     * [getInfo 获取我的简历信息]
     */
    getInfo: function(){
        var that = this;
        GraceJS.get(
            apiServer + 'resume.user/myResumeInfo', 
            {}, {},
            function (res) {
                if (res.code == 0) {
                    that.setData({
                        user: res.data,
                    })
                } else {
                    GraceJS.msg(res.message)
                }
            }
        )
    },
    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function () {
        return {
            title: '郑炳东简历-PHP全栈开发工程师',
            path: '/pages/index/index',
          }
    },
    // 分享朋友圈
    onShareTimeline: function () {
        return {
            title: '郑炳东简历-PHP全栈开发工程师',
            query: '/pages/index/index',
        }
    }
})